package com.cloud.common.utils;

import java.util.List;

import com.cloud.common.model.Depart;

/**
 * 
  * @Description: TreeGrid数据响应返回类型
  * @author: feelj
  * @date: 2018年10月11日 下午3:30:31 
  *
 */
public class TreeGridResult<T> {
	
	private String msg;
	
	private Integer code;
	
	private List<T> data;
	
	private Integer count;
	
	private Boolean is=true;
	
	private String tip;
	
	public TreeGridResult(){}
	
	public TreeGridResult(Integer count, List<T> data){
		this.data=data;
		this.count=count;
		this.is=true;
		this.code=0;
		this.tip="查询成功";
		this.msg="执行成功";
	}
	
	public String getTip() {
		return tip;
	}
	
	public void setTip(String tip) {
		this.tip = tip;
	}
	
	public Boolean getIs() {
		return is;
	}
	
	public void setIs(Boolean is) {
		this.is = is;
	}
	
	public Integer getCount() {
		return count;
	}
	
	public void setCount(Integer count) {
		this.count = count;
	}
	
	public List<T> getData() {
		return data;
	}	
	
	public void setData(List<T> data) {
		this.data = data;
	}
	
	public Integer getCode() {
		return code;
	}
	
	public void setCode(Integer code) {
		this.code = code;
	}
	
	public String getMsg() {
		return msg;
	}
	
	public void setMsg(String msg) {
		this.msg = msg;
	}

}
